package router

import (
	"service/controller"

	"github.com/gin-gonic/gin"
)

func FileRouter(fileRouter *gin.RouterGroup) {

	fileRouter.GET("/img", controller.GetAllPicsController)
	fileRouter.PATCH("", controller.UpdateFileController)
	fileRouter.PATCH("/info", controller.UpdateFileInfoController)
	fileRouter.GET("", controller.GetFileController)
	fileRouter.POST("/pic", controller.SavePictureController)
	fileRouter.POST("/pics", controller.SavePicturesController)
	fileRouter.DELETE("", controller.DeleteFileController)
}
